Skip to content

【比赛2025秋】T1-1-30#1132

Open
PanZezhong1725 wants to merge 2 commits intomainfrom
issue/1031_T1-1-30
Open

【比赛2025秋】T1-1-30#1132
PanZezhong1725 wants to merge 2 commits intomainfrom
issue/1031_T1-1-30

Conversation

@PanZezhong1725
Copy link
Copy Markdown
Collaborator

No description provided.

@PanZezhong1725
Copy link
Copy Markdown
Collaborator Author

cpu & nv
image
maca
image
hpcc
image
moore
image

Comment on lines +23 to +46
# def interpolate(
# input: Tensor,
# size: Optional[Union[int, Sequence[int]]] = None,
# scale_factor: Optional[Union[float, Sequence[float]]] = None,
# mode: str = "nearest",
# align_corners: Optional[bool] = None,
# recompute_scale_factor: Optional[bool] = None,
# ) -> Tensor:
# if mode == "nearest":
# if align_corners is not None:
# raise ValueError(
# "align_corners option can only be set with the "
# "interpolating modes: linear | bilinear | bicubic | trilinear"
# )
# return upsample_nearest(input, size, scale_factor)

# if mode == "bilinear":
# if align_corners is None:
# align_corners = False
# return upsample_bilinear(input, size, scale_factor, align_corners)

# raise NotImplementedError(
# f"Interpolation mode '{mode}' is not currently supported."
# )
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个可以去除了吧。

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这先留着吧,是另一个人实现的upsample,两个实现都是对的,以防以后有切换的时候

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants